package com.example.agent;

import com.fasterxml.jackson.databind.ObjectMapper;
import java.io.File;
import java.io.IOException;
import java.util.List;

public class ApiStorage {
    public static void saveApiInfo(List<ApiInfo> apiList) {
        ObjectMapper objectMapper = new ObjectMapper();
        try {
            objectMapper.writeValue(new File("api_info.json"), apiList);
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
}
